﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: CommentEntity.cs
// 修改时间：2020-9-8 10:39:58
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Comment 的实体类.
	/// </summary>
	[Table("Comment")]
	public partial class CommentEntity
	{
		#region Properties
		private int? _commentID = 0;
		/// <summary>
		/// 评论ID(主键)
		/// </summary>
		[Column("CommentID",TypeName="int")]
		[Key]
		public int? CommentID
		{
			get {return _commentID;}
			set {_commentID = value;}
		}
		
		private int? _generalID = 0;
		/// <summary>
		/// 内容ID
		/// </summary>
		[Column("GeneralID",TypeName="int")]
		public int? GeneralID
		{
			get {return _generalID;}
			set {_generalID = value;}
		}
		
		private int? _nodeID = 0;
		/// <summary>
		/// 节点ID
		/// </summary>
		[Column("NodeID",TypeName="int")]
		public int? NodeID
		{
			get {return _nodeID;}
			set {_nodeID = value;}
		}
		
		private int? _topicID = 0;
		/// <summary>
		/// 在评论表中的主题ID
		/// </summary>
		[Column("TopicID",TypeName="int")]
		public int? TopicID
		{
			get {return _topicID;}
			set {_topicID = value;}
		}
		
		private System.String _commentTitle = string.Empty;
		/// <summary>
		/// 评论标题
		/// </summary>
		[Column("CommentTitle",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CommentTitle
		{
			get {return _commentTitle;}
			set {_commentTitle = value;}
		}
		
		private System.String _email = string.Empty;
		/// <summary>
		/// 电子邮件
		/// </summary>
		[Column("Email",TypeName="nvarchar(255)")]
		[RegularExpression(RegexHelper.EmailPattern, ErrorMessage = "Email格式不对")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Email
		{
			get {return _email;}
			set {_email = value;}
		}
		
		private System.String _content = string.Empty;
		/// <summary>
		/// 评论内容
		/// </summary>
		[Column("Content",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Content
		{
			get {return _content;}
			set {_content = value;}
		}
		
		private System.String _face = string.Empty;
		/// <summary>
		/// 表情
		/// </summary>
		[Column("Face",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Face
		{
			get {return _face;}
			set {_face = value;}
		}
		
		private DateTime? _updateDateTime = null;
		/// <summary>
		/// 发表评论时间
		/// </summary>
		[Column("UpdateDateTime",TypeName="datetime")]
		public DateTime? UpdateDateTime
		{
			get {return _updateDateTime;}
			set {_updateDateTime = value;}
		}
		
		private int? _position = 0;
		/// <summary>
		/// 发表评论观点(0:中立，1:赞同，-1:反对)
		/// </summary>
		[Column("Position",TypeName="int")]
		public int? Position
		{
			get {return _position;}
			set {_position = value;}
		}
		
		private System.Boolean _isPassed = false;
		/// <summary>
		/// 是否通过审核
		/// </summary>
		[Column("IsPassed",TypeName="bit")]
		public System.Boolean IsPassed
		{
			get {return _isPassed;}
			set {_isPassed = value;}
		}
		
		private int? _agree = 0;
		/// <summary>
		/// 当前评论的支持数
		/// </summary>
		[Column("Agree",TypeName="int")]
		public int? Agree
		{
			get {return _agree;}
			set {_agree = value;}
		}
		
		private int? _oppose = 0;
		/// <summary>
		/// 当前评论的反对数
		/// </summary>
		[Column("Oppose",TypeName="int")]
		public int? Oppose
		{
			get {return _oppose;}
			set {_oppose = value;}
		}
		
		private int? _neutral = 0;
		/// <summary>
		/// 当前评论的中立数
		/// </summary>
		[Column("Neutral",TypeName="int")]
		public int? Neutral
		{
			get {return _neutral;}
			set {_neutral = value;}
		}
		
		private int? _score = 0;
		/// <summary>
		/// 评分
		/// </summary>
		[Column("Score",TypeName="int")]
		public int? Score
		{
			get {return _score;}
			set {_score = value;}
		}
		
		private System.String _ip = string.Empty;
		/// <summary>
		/// IP
		/// </summary>
		[Column("IP",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String IP
		{
			get {return _ip;}
			set {_ip = value;}
		}
		
		private System.Boolean _isElite = false;
		/// <summary>
		/// 是否推荐
		/// </summary>
		[Column("IsElite",TypeName="bit")]
		public System.Boolean IsElite
		{
			get {return _isElite;}
			set {_isElite = value;}
		}
		
		private System.Boolean _isPrivate = false;
		/// <summary>
		/// 是否只有自己可见
		/// </summary>
		[Column("IsPrivate",TypeName="bit")]
		public System.Boolean IsPrivate
		{
			get {return _isPrivate;}
			set {_isPrivate = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 会员名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private System.String _reply = string.Empty;
		/// <summary>
		/// 管理员回复内容
		/// </summary>
		[Column("Reply",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Reply
		{
			get {return _reply;}
			set {_reply = value;}
		}
		
		private System.String _replyAdmin = string.Empty;
		/// <summary>
		/// 回复的管理员名称
		/// </summary>
		[Column("ReplyAdmin",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ReplyAdmin
		{
			get {return _replyAdmin;}
			set {_replyAdmin = value;}
		}
		
		private DateTime? _replyDatetime = null;
		/// <summary>
		/// 回复时间
		/// </summary>
		[Column("ReplyDatetime",TypeName="datetime")]
		public DateTime? ReplyDatetime
		{
			get {return _replyDatetime;}
			set {_replyDatetime = value;}
		}
		
		private System.Boolean _replyIsPrivate = false;
		/// <summary>
		/// 回复内容是否隐藏
		/// </summary>
		[Column("ReplyIsPrivate",TypeName="bit")]
		public System.Boolean ReplyIsPrivate
		{
			get {return _replyIsPrivate;}
			set {_replyIsPrivate = value;}
		}
		
		private System.String _replyUserName = string.Empty;
		/// <summary>
		/// 被回复的会员名
		/// </summary>
		[Column("ReplyUserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ReplyUserName
		{
			get {return _replyUserName;}
			set {_replyUserName = value;}
		}
		
		#endregion
	}
}
